import { createApp } from 'vue'
import '../../renderer/src/assets/css/index.less'
//element-plus样式
import 'element-plus/theme-chalk/index.css'
import App from './App.vue'
const app = createApp(App)
//引入路由
import router from './router'

//状态管理
import { createPinia } from 'pinia'
import piniaPluginPersist from 'pinia-plugin-persist'
const store = createPinia()
store.use(piniaPluginPersist)

import * as ElementPlusIconsVue from '@element-plus/icons-vue'
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
//国际化
//国际化
import i18n from './locales'


app.use(router)
app.use(store)
app.use(i18n)
app.mount('#app')
